Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (main)
- (define (print-it it)
- (display it))
- (define test "oooo")
- (print-it test))
- (let ((output-port (open-file "test.txt" "w")))
- (display "hello, world" output-port)
- (newline output-port)
- ((main) output-port) ;; ERROR: Wrong type to apply: #<unspecified>
- (close output-port))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement